package com.example.demo.test123;

import com.example.demo.mapper.UsertableZMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class changepassword {
    @Resource
    private UsertableZMapper usertableZMapper;

    @RequestMapping("/passwordchange")
    public String Formin() {
        return "beiyong";
    }

    @RequestMapping("/changepass")
    public String demo3(String username, String password) {
        boolean updateusertable = usertableZMapper.updateusertable(username, password);
        return "/index";
    }
}
